/**
 * Created by subo on 16/4/20.
 */
var category_titles = ['分类', '品牌'];
var category_con_1 = "#category_con_1";
var category_con_2 = "#category_con_2";
function categoryHomeIndex(){
    $('#productlistLink1').on('tap', function () {
        categoryhomeToproductlist(categoryhomeIndex.product_list);
    });

    $('#productlistLink2').on('tap', function () {
        categoryhomeToproductlist(categoryhomeIndex.product_list);
    });

    $('#productlistLink3').on('tap', function () {
        categoryhomeToproductlist(categoryhomeIndex.product_list);
    });
}

var categoryhomeIndex = {'product_list':1};
function categoryhomeToproductlist(i) {
    var page_content = $("div[data-role='content']");
    switch (i) {
        case categoryhomeIndex.product_list:
            document.title = '商品列表';
            loadTitleBar1_r1(product_list_titles);
            page_content.load('product_list/product_list.html',function(){
                productListIndex();
            });
            break;
    }
}